#!/usr/bin/python
# -*- coding: UTF-8 -*-
'''
Created on 30 jun 2011

@author: Joakim Lindskog

Copyright (c) 2011 Joakim Lindskog

This file is part of MyGarden.

    MyGarden is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    MyGarden is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with MyGarden.  If not, see <http://www.gnu.org/licenses/>.
'''

'''
Global constants
'''
# Screen width
SCREEN_WIDTH = 800
# Screen height
SCREEN_HEIGHT = 600
# Month names
MONTHS = []
def reload_months():
    global MONTHS
    MONTHS = [_("march"), _("april"),
          _("may"), _("june"),
          _("july"), _("august"),
          _("september"), _("october")]
reload_months()

# Number of days in each month
DAYS_IN_MONTH = [31, 30,
                 31, 30,
                 31, 31,
                 30, 31]
# Monthly average soil temperatures
AVERAGE_SOIL_TEMPS = [3, 7,
                 12, 16,
                 18, 19,
                 17, 12,
                 8] # One extra to allow extrapolation of average day temperature

# Pixels per centimeter
PX_PER_CM = 3.0

# Plant derived class variables
PLANT_CLASS_VARIABLES = {'name': str,
                         'icon': str,
                         'tooltip_text': str,
                         'seed_image_name': str,
                         'grow_image_name': str,
                         'harvest_image_name': str,
                         'days_until_ripe': int,
                         'days_as_seed': int,
                         'plant_distance': int,
                         'start_scale': float,
                         'base_score': int,
                         'water_need': float,
                         'nutrient_need': float,
                         'min_temperature': int,
                         'max_temperature': int,
                         'min_rotation': int,
                         'max_rotation': int,
                         'soil_anchor_x': int,
                         'soil_anchor_y': int}

# Default images
MISSING_IMAGE_NAME = 'missing_image.png'
MISSING_IMAGE = None
DEFAULT_ICON_NAME = 'default_icon.png'
DEFAULT_ICON = None

# Background sounds
BACKGROUND_SOUNDS = ['birds1.ogg',
                     'birds2.ogg',
                     'birds3.ogg']